﻿using System;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.UI;
using YArchitech.Revit;

namespace YArchitech.Plumbing
{
	[Transaction(TransactionMode.Manual)]
	[Regeneration(RegenerationOption.Manual)]
	public class CisternCalculateCommand : HYNoTranExternalCommand
	{
		public override Result HYExecute()
		{
			Result result;
			try
			{
				new FrmCisternCalculate(base.Doc).ShowDialog();
				result = Autodesk.Revit.UI.Result.Succeeded;
			}
			catch (Exception ex)
			{
				this.message = ex.Message;
				result = Autodesk.Revit.UI.Result.Failed;
			}
			return result;
		}
	}
}
